package com.hpeu_01.day0120;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

public class IODemoe02 {
    public static void main(String[] args) {
        try {
            FileInputStream is = new FileInputStream("D:\\project\\JAVA\\java\\JavaSE\\src\\com\\hpeu_01\\day0120\\file\\a.txt");
            int len = is.read();
            while (len!=-1){
                System.out.print((char)len);
                len = is.read();
            }
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }

    }
}
